package com.example.myapplication.a_utils;

import com.example.myapplication.b_entity.Daxia;
import com.example.myapplication.b_entity.Login_Entity;
import com.example.myapplication.b_entity.Reg_Entity;
import com.example.myapplication.video.video_bean.Video_Text_Bean;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface Ret_API {
    @POST("/register")
    Observable<Reg_Entity> reg(@Query("name") String name, @Query("password") String password);

    @POST("/login")
    Observable<Login_Entity> login(@Query("name") String name, @Query("password") String password);


    @GET("/ios/cf/dish_list.php?stage_id=1&")
    Observable<Daxia> getDaxia(@Query("limit") int index1, @Query("page") int index2);




}
